import request from '@/utils/http'

export function getActivityRoomApplicationById (id) {
    return request({
        url: `activityRoomApplication/${id}`,
        method: 'get'
    })
}

export function listActivityRoomApplications (page, pageSize) {
    return request({
        url: 'activityRoomApplication',
        method: 'get',
        params: { page, pageSize }
    })
}

export function createActivityRoomApplication (data) {
    return request({
        url: 'activityRoomApplication',
        method: 'post',
        data
    })
}

export function updateActivityRoomApplication (data) {
    return request({
        url: 'activityRoomApplication',
        method: 'put',
        data
    })
}

export function deleteActivityRoomApplicationById (id) {
    return request({
        url: `activityRoomApplication/${id}`,
        method: 'delete',
    })
}

export function countActivityRoomApplicationInWeek() {
    return request({
        url: `activityRoomApplication/count/week`,
        method: 'get',
    })
}